import { useState } from "react"
import './index.less'

function Test() {
  const [count, setCount] = useState([12, 22])

  const handelClick = () => {
    const newCount = [...count]
    newCount[0] = 99
    setCount(newCount)
  }

  return (
    <>
      <div>{ count }</div>
      <button onClick={handelClick}>点我</button>
    </>
  )
}

export default Test